<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="font-size: 36px;">我是一个文本</div>
    <script src="jquery-3.7.1.min.js"></script>
    <script>
        $(document).ready(function() {
            // var fontSize = $("div").css("font-size");
            // console.log(fontSize);
            $("div").css("font-size", "24px");
        });
    </script>
</body>
</html>